package com.shenke.ihquestionservice;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.scheduling.annotation.EnableScheduling;

// 如需开启 Redis，须移除 exclude 中的内容
//@SpringBootApplication(exclude = {RedisAutoConfiguration.class})
@ServletComponentScan
@SpringBootApplication
@MapperScan("com.shenke.ihquestionservice.mapper")
@EnableScheduling
@EnableAspectJAutoProxy(proxyTargetClass = true, exposeProxy = true)
@ComponentScan("com.shenke")
@EnableDiscoveryClient
@EnableFeignClients(basePackages = {"com.shenke.ihserviceclient.service"})
public class IhQuestionServiceApplication {

	public static void main(String[] args) {
		SpringApplication.run(IhQuestionServiceApplication.class, args);
	}

}
